<!-- 空置房申请 -->
<template>
	<view>
		<view class="block__title">房屋信息</view>
<!-- 		<view class="cu-form-group">
			<view class="title">房屋ID</view>
			{{roomDetail[0].roomId}}
		</view> -->
		<view class="cu-form-group">
			<view class="title">姓名</view>
			<input v-model="userName" style="text-align:right" placeholder="请输入"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">楼栋</view>
			<input v-model="floorNum" style="text-align:right" placeholder="请输入"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">单元</view>
			<input v-model="unitNum" style="text-align:right" placeholder="请输入"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">房屋编号</view>
			<input v-model="roomNum" style="text-align:right" placeholder="请输入"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">楼层</view>
			<input v-model="layer" style="text-align:right" placeholder="请输入"></input>
		</view>
<!-- 		<view class="cu-form-group">
			<view class="title">楼栋</view>
			{{roomDetail[0].floorNum}}号楼
		</view>
		<view class="cu-form-group">
			<view class="title">单元</view>
			{{roomDetail[0].unitNum}}单元
		</view>
		<view class="cu-form-group">
			<view class="title">房屋编号</view>
			{{roomDetail[0].roomNum}}室
		</view>

		<view class="cu-form-group">
			<view class="title">楼层</view>
			{{roomDetail[0].layer+'层'}}
		</view> -->
		<view class="cu-form-group">
			<view class="title">户型</view>
			{{roomDetail[0].housebindstate}}
		</view>
		<view class="cu-form-group">
			<view class="title">建筑面积</view>
			{{roomDetail[0].builtUpArea+'平方米'}}
		</view>
		
		<view class="bottomRegion">
			<button type="primary">提交空置房申请</button>
		</view>
	</view>
</template>

<script>
	// pages/my/myHouseDetail.js
	import context from '../../lib/java110/Java110Context.js';
	const factory = context.factory;

	export default {
		data() {
			return {
				userName:'',
				floorNum:'',
				unitNum:'',
				roomNum:'',
				layer:'',
				ownerInfo: {},
				// 用户信息
				userInfo: {},
				// 用户信息
				ownerFlag: false,
				// 是否有业主信息 标记 如果有为 true  没有为false
				roomDetail: {}
			};
		},

		components: {},
		props: {},

		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {
			// console.log(options.ok)
			// let _that = this;
			context.onLoad(options);
			this.roomDetail = JSON.parse(options.room);
			console.log("applyData.roomDetail",this.roomDetail)
			_that.loadOwenrInfo();
		},

		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},

		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},

		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},

		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},

		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},

		/**
		 * 页面上拉触底事件的处理函数
		 */
		onReachBottom: function() {},

		/**
		 * 用户点击右上角分享
		 */
		onShareAppMessage: function() {},
		methods: {

		}
	};
</script>
<style scoped lang="scss">
	@import "./myHouseDetail.css";
	text {
		text-align: center;
	}
	.block__title {
		margin: 0;
		font-weight: 400;
		font-size: 14px;
		color: rgba(69, 90, 100, .6);
		padding: 40rpx 30rpx 20rpx;
	}
	.bottomRegion{
		width: 100%;
		height: 100rpx;
		position: fixed;
		bottom: 0rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		button{
			width: 400rpx;
			text-align: center;
			height: 70rpx;
			border-radius: 30rpx;
			margin-top: 15rpx;
			line-height: 70rpx;
			font-size: 26rpx;
			// line-height: 100%;
		}
	}
</style>
